/*
 * This file is part of connotea-java.
 *
 * connotea-java is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * connotea-java is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

package org.connotea;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Runtime exception thrown when calling code fails to adhere to the contract
 * established by this client's own interface (e.g. passing invalid URIs to
 * {@link RestletConnector}; failure to provide required form fields when adding,
 * editing or removing posts using {@link Connotea}). The only exceptions to
 * this rule are contained in {@link StringUtils} when data returned by Connotea
 * as part of an API call cannot be converted into a suitable object
 * representation (e.g. {@link Date}, long, int, {@link BigDecimal}, or
 * {@link org.restlet.data.Reference}).
 * 
 * @author <a href="mailto:christopher.townson@googlemail.com">Christopher
 *         Townson</a>
 */
public class ConnoteaRuntimeException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    /**
     * @param message the message
     */
    public ConnoteaRuntimeException(String message) {
        super(message);
    }

    /**
     * @param cause the cause
     */
    public ConnoteaRuntimeException(Throwable cause) {
        super(cause);
    }

    /**
     * @param message the message
     * @param cause the cause
     */
    public ConnoteaRuntimeException(String message, Throwable cause) {
        super(message, cause);
    }
}
